Skip to content

Conversation

@hahnjo
Copy link
Member

@hahnjo hahnjo commented Oct 23, 2025

No description provided.

@hahnjo hahnjo self-assigned this Oct 23, 2025
@hahnjo hahnjo added the in:Hist label Oct 23, 2025
@github-actions
Copy link

github-actions bot commented Oct 23, 2025

Test Results

    22 files      22 suites   3d 18h 42m 53s ⏱️
 3 704 tests  3 704 ✅ 0 💤 0 ❌
79 534 runs  79 534 ✅ 0 💤 0 ❌

Results for commit 5e95c31.

♻️ This comment has been updated with latest results.

@hahnjo hahnjo force-pushed the hist-atomic branch 2 times, most recently from e887602 to 2a971f1 Compare October 24, 2025 08:08
std::atomic_ref in C++20 will offer a portable way to apply atomic
operations to a referenced object, but for now implement a minimal
version ourselves with compiler builtins.
@hahnjo
Copy link
Member Author

hahnjo commented Oct 24, 2025

It seems the latest code works fine to implement atomic operations on Windows 🥳

@hahnjo hahnjo marked this pull request as ready for review October 24, 2025 12:04
@hahnjo hahnjo requested a review from bellenot as a code owner October 24, 2025 12:04
Copy link
Contributor

@jblomer jblomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add a small multi-threaded (stress) test to check that the addition is indeed atomic.

@hahnjo
Copy link
Member Author

hahnjo commented Oct 27, 2025

Perhaps add a small multi-threaded (stress) test to check that the addition is indeed atomic.

Done (it's of course not a guarantee that everything is right since reliably testing race conditions is hard)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants